Add a utility function buffer-narrowed-p, and use it.
authorChong Yidong <cyd@gnu.org>
Fri, 7 Sep 2012 08:58:31 +0000 (16:58 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 7 Sep 2012 08:58:31 +0000 (16:58 +0800)
commit18d5d650ecf89f24bf367a9b4f6fc36baee66e4c
tree95921bc59d568b5955557ee1bb0e61229a1fbb83
parente2d785f37c5b6b7377c67ea70b96e46df526d302
Add a utility function buffer-narrowed-p, and use it.

* lisp/subr.el (buffer-narrowed-p): New function.

* lisp/ses.el (ses-widen):
* lisp/simple.el (count-words--buffer-message):
* lisp/net/browse-url.el (browse-url-of-buffer): Use it

* lisp/simple.el (count-words-region): Don't signal an error if there
is a non-nil prefix arg and the mark is not set.

* doc/lispref/positions.texi (Narrowing): Document buffer-narrowed-p.
doc/lispref/ChangeLog
doc/lispref/positions.texi
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/cl-loaddefs.el
lisp/net/browse-url.el
lisp/ses.el
lisp/simple.el
lisp/subr.el